//
//  EFSeperatorCell.m
//  EnjogFood
//
//  Created by 王芳 on 17/5/19.
//  Copyright © 2017年 wf. All rights reserved.
//

#import "EFSeperatorCell.h"

@interface EFSeperatorCell ()
@property (strong, nonatomic) UIView *line;
@end

@implementation EFSeperatorCell

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        [self initUI];
    }
    return self;
}

- (void)initUI{
    [self.contentView addSubview:self.line];
}


- (UIView *)line{
    if (!_line) {
        _line = [[UIView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, 10)];
        _line.backgroundColor = RGBCOLOR(0xececec);
    }
    return _line;
}

@end
